#!/bin/bash

echo "Disable iptables on elastix"
echo "service iptables stop # won't work cos cron will restart it after a while"
echo "chkconfig iptables of # disable it forever or add iptables rulez"

IP=192.168.11.251

#==============================================================================
# usage: ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
#            [-D [bind_address:]port] [-e escape_char] [-F configfile]
#            [-I pkcs11] [-i identity_file]
#            [-L [bind_address:]port:host:hostport]
#            [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
#            [-R [bind_address:]port:host:hostport] [-S ctl_path]
#            [-W host:port] [-w local_tun[:remote_tun]]
#            [user@]hostname [command]
#
# ssh hangs after password???
# rm /home/$USER/.ssh/known_hosts
#CONNECT='ssh -vvv root@'$IP
#...........................................................
# cygwin to see WTF is wrong
#$SSH root@$IP
#spawn $SSH root@$IP 
#expect "password: "
#send "hwtest\r"
#==============================================================================
# leave putty session with exit, otherwise connection refused problems might be
# experienced
CONNECT='/cygdrive/c/bin/putty/putty.exe root@'$IP

echo ==========================================================================
echo connecting
`$CONNECT`


echo "Bress eni ki to kontinju!"; read